package com.c2soft.nepalcmx.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import lombok.extern.log4j.Log4j2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.c2soft.nepalcmx.command.BrokerFormCommand;
import com.c2soft.nepalcmx.command.TradeBookCommand;

import com.c2soft.nepalcmx.command.WithdrawCommand;
import com.c2soft.nepalcmx.services.BrokerListServices;
import com.c2soft.nepalcmx.services.TradeBookService;
import com.c2soft.nepalcmx.services.UserFormService;
import com.c2soft.nepalcmx.services.WithdrawlService;
import com.c2soft.nepalcmx.util.JsonUtil;

@Log4j2
@Controller
public class BrokerListController {
	
	@Autowired
	private BrokerListServices brokerListServices;
	private WithdrawlService withdrawlService;
	
	@RequestMapping(value = "/brokerList",method=RequestMethod.GET, headers = "Accept=application/json")
	
	public @ResponseBody List<BrokerFormCommand> getBrokerList() {
	List<BrokerFormCommand> brokerList=brokerListServices.getBrokerList();
		return brokerList;
	}
	
	
}
